import { gameMain } from "../GameMain";
import { IBSess } from "../../../common/interfaces";
import { MsgHandler } from "kilom";
import { MsgId, MsgTos } from "../../../config/Msg";

export default class MsgGameMap extends MsgHandler {

    syncPlayer(sess: IBSess, msg: MsgTos[MsgId.syncPlayer]) {
        let player = gameMain.playerDic[sess.uid];
        if (!player) return;
        player.sync = msg;
    }

}